package com.rede.didiok.user.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rede.didiok.common.utils.PageUtils;
import com.rede.didiok.common.utils.Query;

import com.rede.didiok.user.dao.TaskConfigDao;
import com.rede.didiok.user.entity.TaskConfigEntity;
import com.rede.didiok.user.service.TaskConfigService;


@Service("taskConfigService")
public class TaskConfigServiceImpl extends ServiceImpl<TaskConfigDao, TaskConfigEntity> implements TaskConfigService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TaskConfigEntity> page = this.page(
                new Query<TaskConfigEntity>().getPage(params),
                new QueryWrapper<TaskConfigEntity>()
        );

        return new PageUtils(page);
    }

}